<template>
  <div>
    <div class="top">
      <van-icon name="arrow-left" @click="returnTap" />

      <van-icon name="ellipsis" @click="nextTap" />
    </div>
    <div class="message">
      <img src="../../assets/images/logo.png" alt="" />
      <span class="message1">我的世界</span>
      <span class="message2">昵称:我的世界</span>
    </div>
    <div class="row">
      <div class="rowOne">地区: 广东 中山</div>
      <div class="rowOne">系统号: 12345678</div>
    </div>
    <div class="text" @click="beizhuTap">备注和描述</div>
    <div class="col">
      <div class="col1">电话号码</div>
      <div class="col2" style="color: #546885" @click="phoneTap">12334567891011</div>
    </div>
    <div class="col" @click="quanxianTap">
      <div class="col1">朋友权限</div>
      <div class="col2" style="font-size:15px">不让他看生活圈和视频动态</div>
      <div class="col3"><van-icon name="arrow" /></div>
    </div>
    <div class="col">
      <div class="col1"></div>
      <div class="col2" style="font-size:15px">不看他的生活圈和视频动态</div>
      <div class="col3"><van-icon name="arrow" /></div>
    </div>
    <div class="col">
      <div class="col1">生活圈</div>
      <div class="colimg" @click="linktap">
        <img src="../../assets/images/logo.png" alt="" />
        <img src="../../assets/images/logo.png" alt="" />
        <img src="../../assets/images/logo.png" alt="" />
      </div>
      <div class="col3"><van-icon name="arrow" /></div>
    </div>
    <div class="col" @click="moreTap">
      <div class="col1">更多信息</div>
      <div class="col2"></div>
      <div class="col3"><van-icon name="arrow" /></div>
    </div>
    <div class="text" style="color: #546885; border-bottom: 1px solid #eeeeee">
      <van-icon name="chat-o" />
      <span class="text1">发消息</span>
    </div>
    <!-- <div class="text" style="color: #546885; border-bottom: 1px solid #eeeeee" @click="callTap">
      <van-icon name="phone-o" />
      <span class="text1">通话</span>
    </div> -->
    <van-overlay
      :show="show"
      @click="show = false"
      style="background: rgba(30, 30, 30, 0.5)"
    >
      <div class="wrapper" @click.stop>
        <div class="block">
          <div class="blockOne">
              <van-icon name="phone-o" />
                呼叫  1234 5678 9881</div> 
          <div class="blockOne" @click="show = false">取消</div>
        </div>
      </div>
    </van-overlay>
  </div>
</template>
<script>
export default {
  data() {
    return {
        show:false
    };
  },
  methods: {
    returnTap() {
      this.$router.go(-1);
    },
    nextTap() {
      this.$router.push("/msgpeople");
    },
    quanxianTap() {
      this.$router.push("/msgquanxian");
    },
    linktap(){
  this.$router.push("/sharelife");
    },
    callTap(){
        this.show=true
    },
    phoneTap(){
       window.location.href = 'tel://' + "10086"
    },
    moreTap(){
      this.$router.push("/msgshejiao");
    },
        beizhuTap() {
      this.$router.push("/Msgpeopleone");
    },
  },
};
</script>
<style scoped>
.top {
  height: 60px;
  width: 90%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 60px;
  position: relative;
}
.message img {
  width: 80px;
}
.message {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.message1 {
  font-size: 22px;
  font-weight: bold;
  margin-top: 10px;
}
.message2 {
  margin-top: 5px;
  color: #808080;
  color: 15px;
}
.row {
  height: 50px;
  width: 90%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  border-bottom: 1px solid #eeeeee;
  color: #808080;
}
.row1 {
  height: 70px;
  width: 90%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.rowtwo {
  display: flex;
  align-items: center;
}
.rowtwo {
  color: #9d9d9d;
}
.rowtwo img {
  width: 30px;
  height: 30px;
}
.text {
  height: 50px;
  width: 90%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.col {
  height: 60px;
  width: 95%;
  padding: 0 5% 0 0;
  display: flex;
  align-items: center;
  font-size: 18px;
  border-bottom: 1px solid #eeeeee;
}
.col1 {
  width: 30%;
  text-align: center;
}
.col2 {
  width: 60%;
}
.col3 {
  width: 10%;
  text-align: right;
}
.colimg {
  width: 50%;
  margin: 0 5%;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.colimg img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  margin-left: 10px;
}
.text1 {
  font-weight: bold;
  margin-left: 5px;
}
.block {
  height: 140px;
  width: 100%;
  position: fixed;
  right: 0px;
  bottom: 0px;
  z-index: 100;
  background: rgba(255, 255, 255, 1);
  border-radius: 5px;
  z-index: 999;
  color: #1E7BF5;
}
.blockOne {
  height: 68px;
  width: 100%;
  text-align: center;
  line-height: 68px;
}
.block1 {
  border-bottom: 5px solid #bebebe;
}
</style>